package com.biyabi.service;

import com.biyabi.entity.Catelog;
import com.biyabi.pojo.CatelogData;
import com.biyabi.pojo.CatelogsData;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

public interface CatelogService {
    void insert(Catelog catelog,MultipartFile addCatelogLogoFile, HttpServletRequest request);
    void update(Catelog catelog, MultipartFile updateCatelogLogoFile, HttpServletRequest request);
    CatelogsData findAll(Integer currentPage, Integer pageSize, String columnName, String columnValue);
    List<CatelogData> findAllCatelog();
    List<Catelog> findAllLastCatelog();
    List<CatelogData> findAllCatelogWithoutMyself(String id);
    Catelog findOne(String id);
    public List<Catelog> findAllLevleOfFirst();
    public List<Catelog> getLastChildrens(String catelogId);
    public  List<CatelogData> getChildren(Catelog c,String id);
    public  List<CatelogData> getChildren(Catelog c);
}
